package com.wakala.employment.activity;

import android.os.Bundle;
import android.view.KeyEvent;

import androidx.fragment.app.Fragment;

import com.wakala.employment.R;
import com.wakala.employment.core.BaseActivity;
import com.wakala.employment.fragment.message.ChatFragment;
import com.wakala.employment.fragment.other.LoginFragment;
import com.xuexiang.xui.utils.KeyboardUtils;
import com.xuexiang.xui.utils.StatusBarUtils;
import com.xuexiang.xutil.display.Colors;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link ContactChatActivity#} factory method to
 * create an instance of this fragment.
 */
public class ContactChatActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        openPage(ChatFragment.class, getIntent().getExtras());
    }

    @Override
    protected boolean isSupportSlideBack() {
        return false;
    }

    @Override
    protected void initStatusBarStyle() {
        //StatusBarUtils.initStatusBarStyle(this, false, Colors.WHITE);
        getWindow().setStatusBarColor(getResources().getColor(R.color.xui_config_color_light));
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return KeyboardUtils.onDisableBackKeyDown(keyCode) && super.onKeyDown(keyCode, event);
    }

}